<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dashboard - Admin Template</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>/public/css/theme1.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>/public/css/style.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
<script language="javascript">
	var _base_url = '<?php echo base_url() ?>';
	var _site_url = '<?php echo site_url() ?>';
	var _language = 'es';
</script>

	<link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url(); ?>public/css/jqgrid/flex/grid.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url(); ?>public/css/jqgrid/jqModal.css" />
    <link href="<?php echo base_url(); ?>public/css/theme/ui.all.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url(); ?>public/css/jquery.alerts.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url(); ?>public/css/jquery.treeview.css" rel="stylesheet" type="text/css" />

	<script type="text/javascript" src="<?php echo base_url() ?>public/js/jquery.js"></script>
	<script type="text/javascript">
$(document).ready(function(){
	$("#commentForm").validate();
	$(".msg_body").hide();
	$(".msg_head").click(function(){
		$(this).next(".msg_body").slideToggle(500);
	});
});
</script>
    <script type="text/javascript" src="<?php echo base_url() ?>public/js/app.js"></script>
     <script type="text/javascript" src="<?php echo base_url() ?>public/js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>public/js/jquery-ui.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>public/js/jquery.alerts.js"></script>
    <script src="<?php echo base_url(); ?>public/js/jquery.jqGrid.js" type="text/javascript"></script>
	<script src="<?php echo base_url(); ?>public/js/jqgrid/jqModal.js" type="text/javascript"></script>
	<script src="<?php echo base_url(); ?>public/js/jqgrid/jqDnR.js" type="text/javascript"></script>


    <SCRIPT LANGUAGE="Javascript" SRC="<?php echo base_url(); ?>public/JSClass/FusionCharts.js"></SCRIPT>
    <SCRIPT LANGUAGE="JavaScript">		

	var detailsChartLoaded=false;	
	

	function FC_Rendered(DOMId){
		switch(DOMId){
			case "ProductDetails":				
				detailsChartLoaded = true;
				break;			
		}
		return;
	}	
		
	function updateChart(year, catId){			
		if (detailsChartLoaded){
			var strURL = "Data_SalesByCatProd.php?year=" + year + "&catId=" + catId;			
			strURL = strURL + "&currTime=" + getTimeForURL();
			strURL = escape(strURL);
			var chartObj = getChartFromId("ProductDetails");			
			chartObj.setDataURL(strURL);		
		}else {
			alert("Please wait for the charts to load.");
			return;
		}
	}
	function getTimeForURL(){
		var dt = new Date();
		var strOutput = "";
		strOutput = dt.getHours() + "_" + dt.getMinutes() + "_" + dt.getSeconds() + "_" + dt.getMilliseconds();
		return strOutput;
	}
	</SCRIPT>		
</head>
<body>
	<div id="container" style="width:95%">
    	<div id="header">
        	<h2>Company24h-Sistema de Control</h2>     	
     <div id="topmenu">

               
                 <?php
                      //pasar la variable menutop al cargar la vista 2 = inbound
                      if ($this->session->userdata('LOGGED_USR_ID') < 1) {
                      	redirect('');
                      }
                     if ($menutop == '2') {
                 ?>
            	<ul>
                	<li ><a href="<?php echo site_url().'/main_tran';?>">Seguimiento</a></li> 
                	 <li><a href="<?php echo site_url().'/transaccionentrada';?>">Inbound</a></li>  
                  
                	<!--<li><a href="users.html">Tareas</a></li>
                    <li><a href="#">Ventas</a></li>-->
              </ul>
              <?php }
                elseif ($menutop == '1')          	
                {
               ?>
               	<ul>
                	<li class="current"><a href="<?php echo site_url().'/main_tran';?>">Seguimiento</a></li>
            
                		<li><a href="<?php echo site_url().'/transaccionentrada';?>">Inbound</a></li>

                	
                	

                
                		<!--<li><a href="users.html">Tareas</a></li>
                    <li><a href="#">Ventas</a></li>-->
              </ul>
               <?php }
                elseif ($menutop == '0')          	
                {
               ?>
               	<ul>
                	<li><a href="<?php echo site_url().'/main_tran';?>">Seguimiento</a></li>
                	 <li><a href="<?php echo site_url().'/transaccionentrada';?>">Inbound</a></li>
                
                	 <!--<li><a href="users.html">Tareas</a></li>
                    <li><a href="#">Ventas</a></li>-->
              </ul>
               <?php
                }
                  elseif ($menutop == '5')          	
                {
               ?>
               	<ul>
                	<li><a href="<?php echo site_url().'/main_tran';?>">Seguimiento</a></li>
                	 <li><a href="<?php echo site_url().'/transaccionentrada';?>">Inbound</a></li>
               
                	 <!--<li><a href="users.html">Tareas</a></li>
                    <li><a href="#">Ventas</a></li>-->
              </ul>
               <?php
                }
               
                elseif ($menutop == '4')          	
                {
               ?>
               	<ul>
                	<li><a href="<?php echo site_url().'/main_tran';?>">Seguimiento</a></li>
                	 <li><a href="<?php echo site_url().'/transaccionentrada';?>">Inbound</a></li>
                
                	 <!--<li><a href="users.html">Tareas</a></li>
                    <li><a href="#">Ventas</a></li>-->
              </ul>
               <?php
                }
               ?>
               
          </div>
      </div>
  
        <div id="wrapper">
            <div id="content" style="width:100%;">
            	 <?php  $this->load->view($content_page);
                
            	?>
            	
			</div>
		